<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<h1>ai2109 首页</h1>
欢迎{{ request.user.username }}
{#欢迎{{ user.username }}#}

<br>
<a href="{% url 'ai2109:login' %}">登录</a>
<br>
<a href="{% url "ai2109:register" %}">注册</a>
<a href={% url "ai2109:logoutx" %}>注销(登出)</a>

<br>
<a href={% url "ai2109:needlogin" %}>需要看登录的界面</a>

</body>
</html>